From: Marco Trevisan (TreviƱo) Date: Thu, 17 Aug 2023 21:42:02 +0000 (+0200) Subject: init: Include the error stack in the context termination error message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~94 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=49464e3c7ab88f07d12d8f544251acd21ecf6551;p=gnome-shell.git init: Include the error stack in the context termination error message If a failure happened during initialization the shell does not provide any debug information, and so only the error is shown without a stack trace. Since this information is provided, pass it as the error message. Do not log this directly from JS so that we just use one termination path. Part-of: --- diff --git a/js/ui/init.js b/js/ui/init.js index 2dea981b7..a7cf7db3e 100644 --- a/js/ui/init.js +++ b/js/ui/init.js @@ -11,7 +11,7 @@ imports._promiseNative.setMainLoopHook(() => { import('./main.js').then(main => main.start()).catch(e => { const error = new GLib.Error( Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED, - e.message); + `${e.message}\n${e.stack}`); global.context.terminate_with_error(error); }); return GLib.SOURCE_REMOVE;